package com.hr.system.mapper;

import java.util.List;

import com.hr.common.core.domain.entity.SysUser;
import com.hr.system.domain.WorkExperience;

/**
 * 任职经历Mapper接口
 * 
 * @author ruoyi
 * @date 2021-02-23
 */
public interface WorkExperienceMapper 
{
    /**
     * 查询任职经历
     * 
     * @param id 任职经历ID
     * @return 任职经历
     */
    public WorkExperience selectWorkExperienceById(Long id);

    /**
     * 根据用户查询任职数据
     * @param user
     * @return
     */
    public WorkExperience selectWorkExperienceByUser(SysUser user);


    /**
     * 查询任职经历列表
     * 
     * @param workExperience 任职经历
     * @return 任职经历集合
     */
    public List<WorkExperience> selectWorkExperienceList(WorkExperience workExperience);

    /**
     * 新增任职经历
     * 
     * @param workExperience 任职经历
     * @return 结果
     */
    public int insertWorkExperience(WorkExperience workExperience);

    /**
     * 修改任职经历
     * 
     * @param workExperience 任职经历
     * @return 结果
     */
    public int updateWorkExperience(WorkExperience workExperience);

    /**
     * 删除任职经历
     * 
     * @param id 任职经历ID
     * @return 结果
     */
    public int deleteWorkExperienceById(Long id);

    /**
     * 批量删除任职经历
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteWorkExperienceByIds(String[] ids);
}
